import React, { useState, useEffect } from 'react';
import { request } from 'umi';
import Menus from '@/components/menus';
import Header from '@/components/header';
import "./index.less"
export default function index(props: any) {
  let [menulist, setMenulist] = useState([])
  return (
    <div style={{ display: "flex", minHeight: "100vh", justifyContent: "space-between", backgroundColor: "#F5F5F5" }}>
      {/* 菜单 */}
      <Menus menulist={menulist} styly={{ minHeight: '100%' }}></Menus>
      {/* 右边 */}
      <div style={{ flex: 1 }}>
        <Header>
          {props.children}
        </Header>
      </div>
    </div>
  )
}

